import { Column, Entity, Index, PrimaryGeneratedColumn } from "typeorm";

@Index("idx_group_id", ["apartmentGroupId"], {})
@Index("idx_tag_id", ["apartmentTagId"], {})
@Entity("apartment_tag_arrangement", { schema: "cbox" })
export class ApartmentTagArrangement {
  @PrimaryGeneratedColumn({ type: "int", name: "id", unsigned: true })
  id: number;

  @Column("int", { name: "apartment_tag_id", unsigned: true })
  apartmentTagId: number;

  @Column("int", { name: "apartment_group_id", unsigned: true })
  apartmentGroupId: number;
}
